import service from '../../request'

export default function detail (params) {
  return service.get(`/product/detail/${params.pid}`, params.token ? {
    params: { token: params.token }
  } : '')
}
